<div>	
	<div class="message">
		Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
	</div>		
	<h3>Patient List Information</h3>
	<?php echo $form->create('', array('url'=>'/patients/index'));?>
		<div align="center">								
			<table border="1px">
				<tr>
					<td colspan="9">
						<label>Search By</label>
						<?php echo $form->select('searyby',array('Hospital Code'=>'Hospital Code', 'Patient Name'=>'Patient Name', 'PhilHealth Number'=>'PhilHealth Number'));?>
						<label>Keyword</label><span class="search"><input type="text" name="data[Patient][keyword]"><input type="submit" value="Search"> </span>					
					</td>
				</tr>
			<?php if(count($data)>0){?>
				<tr>
					<td><label></label> </td>
					<td><label>No.</label> </td>
					<td><label>Hospital Code</label> </td>
					<td><label>Hospital Name</label> </td>				
					<td><label>Patient Name</label> </td>
					<td><label>Patient Age</label> </td>
					<td><label>Gender</label> </td>
					<td><label>Date Admitted</label> </td>
					<td><label></label> </td>
				</tr>			
			<?php foreach($data as $row){?>
				<tr>
					<td><?php echo $html->image('/css/img/001_54.png',array('height'=>'18'));?> </td>
					<td><label><?php echo $i++;?></label> </td>
					<td><label><?php echo $row['Patient']['hospitalnumber'];?></label> </td>
					<td><label><?php echo $row['Patient']['hospitalname'];?></label> </td>
					<td><label><?php echo $row['Patient']['patientlastname'].', '.$row['Patient']['patientfirstname'].' '.$row['Patient']['patientfirstname'];?></label> </td>
					<td align="center"><label><?php echo $row['Patient']['patientage'];?></label> </td>
					<td align="center"><label><?php echo $row['Patient']['patientgender'];?></label> </td>
					<td align="center"><label><?php echo $row['Patient']['dateadmitted'];?></label> </td>
					<td><?php echo $html->link($html->image('/css/img/001_35.png', array('alt'=>'fddf', 'border'=>"0", "height"=>"18")),'/evaluates/evaluate/'.$row['Patient']['id'],'', null, false);?> </td>							
				</tr>			
			<?php }?>
			<?php }else{?>
				<tr>
					<td colspan="9" align="center">
					<div style="color: red">
						<div align="center"><span class="norecord"><lable style="margin-left: 30px; font-size: 15px">No Record Found.</label></span></div>						
					</div>
					</td>					
				</tr>
			<?php }?>
			</table>			
		</div>
	<?php echo $form->end();?>
</div>